//
//  receiveOnline.m
//  tcpoctest
//
//  Created by gump on 5/16/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "receiveOnline.h"

#import "OnlinePeopleDataSource.h"

@implementation receiveOnline

-(void)processreceive
{
    //返回 15char(1),15char(1),性别char(1),[用户名长度char(1),用户名char(x)]
    [[DataControl shareControl].OnlinePeoDS RemoveAll];
    
    [[DataControl shareControl].UICommendDS addUICommand:UC_ONLINEPEOBACK];
    
    [logicsb ReadChar];//15
    [logicsb ReadChar];//sex
    
    while (logicsb.mrestLength > 0) {
        NSString *strmail = [logicsb ReadUnencodeString];
        [[DataControl shareControl].OnlinePeoDS AddShowArr:strmail];
    }
    
    [[DataControl shareControl].UICommendDS addUICommand:UC_REFRESHCURVIEW];
    [[DataControl shareControl].UICommendDS addUICommand:UC_ONLINEP_CAMPELELOADING];
    
    [self ShowLog];
}

@end
